<%@ page contentType="text/html; charset=utf-8" %>
<%@ include file="common.jsp" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd"> 
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>检测用户名</title>
        <link href="CSS/style1.css" rel="stylesheet">
    </head>
<body>
      <table width="90%"  border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td height="7" align="center">&nbsp;</td>
        </tr>	  
	  <%
	  request.setCharacterEncoding("gb2312");
            String username = request.getParameter("UserName");
            java.util.Collection l = bookDB.getMemberName(username);
            java.util.Iterator i = l.iterator();          
        if(i.hasNext()){        
	  %>

        <tr>
          <td height="45" align="center"><%out.println(username);out.println("很报歉!<br><br>["+username+"]用户名已经被注册!");%></td>
        </tr>
	<%}else{%>
        <tr>
          <td height="56" align="center"><%out.println(username);out.println("祝贺您!<br><br>["+username+"]用户名没有被注册!");%></td>
        </tr>	
	<%} %>
    </table>
</body>
</html>
